Skip to main content

22.02.09 - Matrices

Numeric Vector Matrices Matrix Operations: Sum and Product Determinant of a Matrix

Numeric Vector

Numeric Vector

  • Let nNn\in \N and n>0n>0
  • Indicated with Rn\R^n, set of ordered n-tuples of real numbers
  • Generic element a = (a1,a2,...,ana_1,a_2,...,a_n) is named numeric vector or simply vector of order n

Sum of Vectors

  • Sum of vectors: c=(a1+b1,a2+b2,...,an+bn)c = (a_1 + b_1 , a_2 + b_2 , . . . , a_n + b_n )
  • Can also do the same for aba-b

Scalars

Numeric value λR1\lambda \in \R^1 is a scalar The product of a vector by a scalar is the vector c=(λa1,λa2,...,λan)c=(\lambda a_1,\lambda a_2,...,\lambda a_n) Very similar to ×\times

Scalar Product

Generated by the sum of the products of each pair of corresponding components ab=c=a1b1+a2b2,...,anbnab = c = a_1b_1 + a_2b_2,...,a_nb_n Example:

  • a=(1,0,3)a = (1, 0, 3)
  • b=(2,1,2)b = (2, 1, −2)
  • ab=(12)+(01)+(3(2))=2+06=4ab = (1 · 2) + (0 · 1) + (3 · (−2)) = 2 + 0 − 6 = −4

Properties

  • Symmetry: ab=baab=ba
  • Associativity: λ(ba)=(λa)b=a(λb)\lambda (ba) = (\lambda a)b = a(\lambda b)
  • Distributivity: a(b+c)=ab+aca(b+c)=ab+ac

Matrices

Matrix

2 natural numbers > 0. A matrix (m×nm\times n) is a generic table of the kind

A=(a1,1a1,2...a1,na2,1a2,2...a2,n............am,1am,2...am,n)A=\begin{pmatrix} a_1,_1&a_1,_2&...&a_1,_n \\ a_2,_1&a_2,_2&...&a_2,_n \\ ...&...&...&...\\ a_m,_1&a_m,_2&...&a_m,_n \\ \end{pmatrix} where each matrix element ai,jRa_i,_j\in \R

  • m=rows, n=columns
  • n order square matrix - ARn,nA \in \R_n,_n
  • rectangular - mnm \ne n

Matrix Transpose

  • Transpose matrix is ATA^T whose elements are the same of A but i,j:aj,i=aiT,j\forall i,j : a_j,_i = a^T_i,_j
  • Change index of row with index of columns (rotate it)

Symmetry

  • Only on square matrix
  • When i,j:ai,j=aj,i\forall _i,_j : a_i,_j = a_j,_i

Diagonal and Trace

  • Diagonal of a matrix is the ordered n-tuple that displays the same index twice. From 1 to nai,jn a_i,_j
  • Trace is the sum of the diagonal elements tr(AA)

Null Matrices

  • Is said null OO if all elements are zeros

Identity Matrices

  • Square matrix whose diagonal elements are all ones while all the other extra-diagonal elements are zero

Matrix Operations: Sum and Product

Matrix Sum

i,j:ci,j=ai,j+bi,j\forall i,j:c_i,_j = a_i,_j + b_i,_j Both matrices must be the same size! Can be subtracted from one another

Properties of the matrix sum

  • commutativity: A+B=B+AA + B = B + A
  • associativity: (A+B)+C=A+(B+C)(A + B) + C = A + (B + C)
  • neutral element: A+O=AA + O = A
  • opposite element: ARm,n:!BRm,nA+B=O∀A ∈ Rm,n : ∃!B ∈ R m,n \ni ‘ A + B = O

Product of a scalar and a matrix

Matrix CC defined as: i,j:ci,j=λai,j\forall i,j:c_i,_j = \lambda a_i,_j Similar to ×\times by the scalar

Properties of multiplying by a scalar

  • associativity: ARm,n\forall A \in \R_m,_n and λ,μR\forall \lambda , \mu \in \R:
    • (λμ)A=(Aμ)λ=(Aλ)μ(\lambda \mu )A = (A\mu ) \lambda = (A \lambda) \mu

53125453595c9d03db174ffe1ccc2a39.png

Matrix product

Product of matrices AA and BB is a matrix C=ABC = AB f87cf623638191e375ebed5a70184fb4.png

  • Just the scalar product of row vectors of AA with column vectors of BB
  • Number of columns in the first matrix must be the same as the number of rows in the second

c2,1=a2b1c_2,_1 = a_2b^1

  • left distributivity: A(B+C)=AB+ACA (B + C) = AB + AC
  • right distributivity: (B+C)A=BA+CA(B + C) A = BA + CA
  • associativity: A(BC)=(AB)CA (BC) = (AB) C
  • transpose of the product: (AB)T=BTAT(AB)^T = B^T A^T
  • neutral element: A:AI=A\forall A : AI = A
  • absorbing element: A:AO=O\forall A : AO = O

Commutable - AB=BAAB=BA, one with respect to the other Every matrix AA is commutable with OO (and the result is always OO) and with II (and the result is always AA)

Determinant of a Matrix

(takes decades to understand)

  • Most important concepts of maths
  • Permutation: Different ways of grouping items, can be checked with factorials
  • Fundamental Permutation - Reference a sequence
  • Inversion - Every time two objects in a permutation follow each other in a reverse order with respect to the fundamental
  • Even class permutation - Permutation undergone to an even number of inversions
    • Also have Odd class permutation

Associated Product

Never in the same column/row. Product of this is referred to as associated product and is indicated with the symbol ϵ\epsilon(c). Wont be the same number either. Order the factors according to the row index: fcb9972012bd08b0ce9ba20f0959362a.png

Coefficient of nk

Consider 1-2-...-n as fundamental permutation, the scalar nk is defined as: 51253eedd808d1a01f53eb9bb23f7d78.png

Determinant of a Matrix

indicated as det AA is the function det: Rn,nR\R_n,_n \to \R defined as the sum of n! associated products: k=1n!....\sum ^{n!} _{k=1} .... 64d835db6e86e89de63b15415fba4541.png Do it as left to right diagonal +, then right to left diagonal as -

Linear Dependence/Independence

Linear Combination

If row can be represented by other rows with weighted sum by means of the same scalars

Linear dependence

If null vector can be expressed as the linear combination of the mm rows (nn columns) by means of nun-null scalars Rows are linearly dependent if

λ1,λ2,...,λm0,0,...,0\exists \lambda_1,\lambda_2,...,\lambda_m\ne0,0,...,0 such that 2a22b1f6be42fbe66651c87888118178.png

Linear Independence

If only way to express a row of all zeros as the linear combination of the m rows(n columns) is by means of null scalars

Fundamental property of Linear Dependence

r rows are linearly dependent if and only if at least one row can be expressed as the linear combination of the others